package com.gcb;

import com.gcb.service.AccountService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author 35235
 * @Date 2021/7/21 9:57
 * @Version 1.0
 */
public class Application {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("application.xml");
        AccountService accountService = context.getBean("accountService",AccountService.class);
        accountService.listAll().forEach(System.out::println);

        accountService.transferMoney(2,1,50.00);
    }
}
